package com.avocado.base.dto.user;

import com.avocado.base.validator.user.UserPasswordValidation;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@EqualsAndHashCode(callSuper = true)
@Data
@UserPasswordValidation(field1 = "password",field2 = "confirmPassword")
public class UserEditDto extends UserDto{
	@NotNull(message ="操作失败,ID不能为空!")
	private Long id;

	@NotBlank(message = "操作失败,是否过期不能为空!")
	@NotNull(message ="操作失败,是否过期不能为空!")
	private String accountNonExpired;
	@NotBlank(message = "操作失败,是否锁定不能为空!")
	@NotNull(message ="操作失败,是否锁定不能为空!")
	private String accountNonLocked;


	@NotNull(message ="操作失败,密码不能为空!")
	private String password;


	@NotNull(message ="操作失败,确认密码不能为空!")
	private String confirmPassword;
	@Override
	public String toString() {
		return "UserEditDto [id=" + id + ", accountNonExpired=" + accountNonExpired + ", accountNonLocked="
				+ accountNonLocked + "]";
	}
	
	
	
	
	
	
	
	
	

}
